class BusinessesController < ApplicationController
	def new
		render "new"
	end

	def create_business
		business = Business.new
		business.user_name = params[:userName]
		business.tel_phone = params[:telPhone]
		business.business_title = params[:businessTitle]
		business.business_desc = params[:businessDesc]
		business.time_liness = params[:timeLiness]
		business.confidential = params[:confidential]
		business.created_at = Time.now
		business.updated_at = Time.now
		business.publish_status = 1
		business.save
		render "success"
	end
end
